#include "SGNodePrimitive.h"
#include "SGTree.h"

//Constructor
SGNodePrimitive::SGNodePrimitive(IPrimitive* primitive)
:m_primitive(primitive)
{}

//destructor
//SGNodePrimitive::~SGNodePrimitive(){}

//update the primitive
void SGNodePrimitive::doUpdate()
{
	CMatrix w = SGTREE.getValue();// * m_world;
	m_primitive->setWorldMatrix(w);
}
